home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1764 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  927 b 

  1. Path: connix.com!news
  2. From: Scott Hawley <shawley@connix.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: getchar() problems!
  5. Date: 16 Jan 1996 18:01:04 GMT
  6. Organization: SHAWLEY SYSTEMS
  7. Message-ID: <4dgp50$6bg@comet.connix.com>
  8. References: <DL2wFD.8BK@cdf.toronto.edu>
  9. NNTP-Posting-Host: shawley.connix.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  14.  
  15. That is exactly how getchar is suppose to work. getchar will not actually
  16. start working until a <ENTER> key is pressed.
  17. If you are on a unix system you probally won't be able to get a single
  18. character at a time with the compilier you have unless you use curses.
  19. If you are on a PC, look up and see if they and a getch command, both
  20. MS and Borland do have this command. They will get a character. If
  21. you want to display the character as it is being typed look at
  22. getche.
  23.  
  24. hope this helps.
  25.  
  26.